package dbsqlx

import "fmt"

type User struct {
	Id   int
	Age  int
	Name string
}

func QueryMultiRowDemo(id int) {
	sqlStr := "select id, name, age from db_user where id>?"
	var users []User
	err := Db.Select(&users, sqlStr, id)
	if err != nil {
		fmt.Printf("select failed, err: %v\n", err)
		return
	}
	fmt.Println("select user: ", users)
}
